#include "globals.h"
// includes for stat & chmod
#include <sys/types.h>
#include <sys/stat.h>
// includes for directory access
#include <dirent.h>
#include <unistd.h>

bool file_exist (const char* filename) {
        if (access (filename, F_OK) == 0) {
		return true;
                /*if (getuid() != 0) { // 0 <=> Super-User 
                        //fprintf (stdout, "Danger !");
                }//*/
        }
	else {
		return false;
	}
}
